package com.jy.adscm.operation.config;

import lombok.Data;

import java.util.List;

/**
 * @author zyl
 * @Date 2019-05-05 -18:30
 */
@Data
public class MyPage<T> {
    private Integer total;// 总条数
    private Long totalPage;// 总页数
    private List<T> items;// 当前页数据

    public MyPage() {
    }

    public MyPage(Integer total, List<T> items) {
        this.total = total;
        this.items = items;
    }

    public MyPage(Integer total, Long totalPage, List<T> items) {
        this.total = total;
        this.totalPage = totalPage;
        this.items = items;
    }

}
